import request from '@/utils/request'

// 查询成果上报列表
export function listProjectReport(query) {
  return request({
    url: '/pm/projectReport/list',
    method: 'get',
    params: query
  })
}

// 查询成果上报详细
export function getProjectReport(id) {
  return request({
    url: '/pm/projectReport/' + id,
    method: 'get'
  })
}

// 新增成果上报
export function addProjectReport(data) {
  return request({
    url: '/pm/projectReport',
    method: 'post',
    data: data
  })
}

// 修改成果上报
export function updateProjectReport(data) {
  return request({
    url: '/pm/projectReport',
    method: 'put',
    data: data
  })
}

// 删除成果上报
export function delProjectReport(id) {
  return request({
    url: '/pm/projectReport/' + id,
    method: 'delete'
  })
}
